package com.lcxsoft.feign.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcx
 * @since 2022-01-20
 */
@Data
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;
    private String goodsId;
    private String dormitoryId;
    private String goodsName;
    private BigDecimal goodsPrice;
    private String goodsPic;
    private String goodsDesc;
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletetime;
    private Boolean deleteflag;
    private Integer goodsNumber;


    @Override
    public String toString() {
        return "Goods{" +
                "goodsId='" + goodsId + '\'' +
                ", dormitoryId='" + dormitoryId + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsPic='" + goodsPic + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", deletetime=" + deletetime +
                ", deleteflag=" + deleteflag +
                ", goodsNumber=" + goodsNumber +
                '}';
    }
}
